package gui.swing;

import javax.swing.*;
import java.awt.*;

public class TestJList extends JFrame {
    public TestJList(){
        Container contentPane = this.getContentPane();


        String[] strs = {"1","2","3"};
        JList jList = new JList(strs);

        contentPane.add(jList);

        this.setVisible(true);
        this.setBounds(100,100,400,400);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TestJList();
    }
}
